package com.itsu.api.controllerApi;

import com.itsu.commons.annotations.NoInterceptor;
import com.itsu.pojo.dto.UserInfoDTO;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

@RequestMapping("user")
public interface UserControllerApi {


    @PostMapping("login")
    @NoInterceptor
    /**
     * 登录手机发送验证码
     */
    ResponseEntity login(@RequestBody Map<String, String> params);


    @PostMapping("loginVerification")
    @NoInterceptor
    /**
     * 验证码登录
     */
    ResponseEntity loginVerification(@RequestBody Map<String, String> params);

    @PostMapping("loginReginfo")
    /**
     * 用户信息
     */
    ResponseEntity loginReginfo(@RequestBody UserInfoDTO userInfoDTO);

    @PostMapping("loginReginfo/head")
    /**
     * 用户头像
     */
    ResponseEntity loginReginfoHead(@RequestParam("headPhoto") MultipartFile headPhoto);
}
